package com.qhy.springcloud;

import com.qhy.myrules.QhyRule;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.cloud.netflix.eureka.EnableEurekaClient;
import org.springframework.cloud.netflix.ribbon.RibbonClient;

/**
 * @author qiuhongyu
 * @date 2020/9/25 18:24
 */
@SpringBootApplication
@EnableEurekaClient
//在微服务启动的时候就能去加载我们自定义Ribbon类
@RibbonClient(name = "SPRINGCLOUD-PROVIDER-DEPT",configuration = QhyRule.class)
public class CunsumerApplication {
    public static void main(String[] args) {
        SpringApplication.run(CunsumerApplication.class, args);
    }
}
